package com.mj.trade;

import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * 启动来暴露服务
 * @author majie
 *
 */
public class Provider {

	/**
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
				new String[] { "classpath:spring/spring-context.xml" });
		
		context.start();
		System.out.println("启动成功");
		System.in.read(); // 为保证服务一直开着，利用输入流的阻塞来模拟
	}
}